﻿app.config(function ($routeProvider) {
    $routeProvider.when("/", {
        templateUrl: "/App/Views/ngHome.html",
        controller: "ngHomeController"
    }).when("/Posts/:pageId", {
        templateUrl: "/App/Views/ngPosts.html",
        controller: "ngPostsController"
    }).when("/PostDetail/:id", {
        templateUrl: "/App/Views/ngPostDetail.html",
        controller: "ngPostDetailController"
    }).when("/PostAdd", {
        templateUrl: "/App/Views/ngPostForm.html",
        controller: "ngAddPostController"
    }).when("/PostEdit/:id", {
        templateUrl: "/App/Views/ngPostForm.html",
        controller: "ngEditPostController"
    }).when("/Projects/:pageId", {
        templateUrl: "/App/Views/ngProjects.html",
        controller: "ngProjectsController"
    }).when("/ProjectDetail/:id", {
        templateUrl: "/App/Views/ngProjectDetail.html",
        controller: "ngProjectDetailController"
    }).when("/ProjectAdd", {
        templateUrl: "/App/Views/ngProjectForm.html",
        controller: "ngAddProjectController"
    }).when("/ProjectEdit", {
        templateUrl: "/App/Views/ngProjectForm.html",
        controller: "ngEditProjectController"
    });
});